package main

import "fmt"

// 常量
// 02_const pi = 3.1415

//02_const (
//	pi = 3.14
//	e = 2.7
//)

// 默认下面n2，n3的值也是10
const (
	n1 = 10
	n2
	n3
)

// iota计数 _标识忽略
const (
	m1 = iota
	m2 = iota
	m3 = iota
	m5 = 100
	_
	m4 = iota
)

// 定义数量级
const (
	_  = iota
	KB = 1 << (10 * iota)
	MB = 1 << (10 * iota)
	GB = 1 << (10 * iota)
	TB = 1 << (10 * iota)
	PB = 1 << (10 * iota)
)

//
const (
	a, b = iota + 1, iota + 2
	c, d
	e, f
)

func main() {
	// 10 10 10
	fmt.Println(n1, n2, n3)
	// 0 1 2 4
	fmt.Println(m1, m2, m3, m5, m4)
	// 数量级
	fmt.Println(KB, MB, GB, TB, PB)
	// 1 2 2 3 3 4
	fmt.Println(a, b, c, d, e, f)
}
